package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Detect;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface DetectService {

	public Detect saveDetect(Detect detect);

	public Set<Detect> loadDetects();

	public Set<Detect> loadReferenceDetects(Set<Detect> detects);

	public Set<Detect> loadDetectsByIdSet(Set<Integer> detectsId);

	public Map<String, ?> loadDetectObjectReferencedSet(Detect detect);

	public Map<String, ?> loadDetectClassReferencedSet(Detect detect);

	public void deleteDetect(Detect detect);

	public void deleteDetects(Set<Integer> deleteDetectsId);

	public List<Detect> findAllDetects(Integer startResult, Integer maxRows);

	public Detect findDetectByPrimaryKey(Integer id);

	public Integer countDetects();

	public Integer countDetects(CmiPagination page);

	public Integer countDetectsByName(String queryName);

	public Integer countDetectsByDetachedCriteria(CmiPagination page);

}
